﻿@model Blog

@{
    ViewBag.Title = Model.Title;
}

<h5 class="text-muted credit">@Model.DatePrintable | @Model.Author.DisplayName</h5>
<h1>@ViewBag.title</h1>
    
<div class="panel-body">
    <div class="display-field">
        @Html.Raw(Model.ContentPrintable)
    </div>
</div>
@if (User.Identity.IsAuthenticated && User.Identity.Name.Equals(Model.Author.Initials, StringComparison.InvariantCultureIgnoreCase))
{
    <div class="panel-footer">
        @Html.ActionLink("ret", "Edit", new { id = Model.Id })
    </div>
}

<hr>

@Html.Partial("_Comments", Model.Comments)
